const url = require('url');
let _url = "http://www.conner.com/a/b/c?userName=conner&pwd=12345#abc";
console.log(url.parse(_url));
let _urlObj = {
  protocol: 'http:',
  slashes: true,
  auth: null,
  host: 'www.conner.com',
  port: null,
  hostname: 'www.conner.com',
  hash: '#abc',
  search: '?userName=conner&pwd=12345',
  query: 'userName=conner&pwd=12345',
  pathname: '/a/b/c',
  path: '/a/b/c?userName=conner&pwd=12345',
  href: 'http://www.conner.com/a/b/c?userName=conner&pwd=12345#abc'
}
console.log(url.format(_urlObj))